package org.xg.study.pd.event.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xg.study.pd.LotteryResult;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName MQEventListener
 * @date 2021/9/17 10:16
 **/
public class MQEventListener implements EventListener{
    private Logger logger = LoggerFactory.getLogger(MQEventListener.class);

    @Override
    public void doEvent(LotteryResult result) {
        logger.info("记录用户 {} 摇号结果(MQ)：{}", result.getUId(), result.getMsg());
    }
}
